package io

// Reader 是包装了基本 Read 方法的小接口
type Reader interface {
    Read(p []byte) (n int, err error)
}

// Writer 是包装了基本 Write 方法的小接口
type Writer interface {
    Write(p []byte) (n int, err error)
}

type Closer interface {
    Close() error
}

type ReadWriter interface {
    Reader
    Writer
}

type ReadWriteCloser interface {
    Reader
    Writer
    Closer
}
